﻿@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<div class="container">
    <div class="span4 row">
        <form class="form-horizontal" action="@Url.Action("Login", "Admin")" method="post">
            @if (!String.IsNullOrEmpty(ViewBag.MSM))
            {
                <div class="control-group">
                    <div class="controls">
                        <div class="alert alert-error">@ViewBag.MSM</div>
                    </div>
                </div>
            }
            <div class="control-group">
                <label class="control-label" for="account">Tài khoản</label>
                <div class="controls">
                    <input type="text" id="account" placeholder="Tài khoản của bạn" name="Account" required />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="password">Mật khẩu</label>
                <div class="controls">
                    <input type="password" id="password" placeholder="Mật khẩu" name="Password" required />
                </div>
                <div class="controls">
                    <input type="hidden" name="ref_url" value="@ViewBag.URL">
                </div>
            </div>
            <div class="control-group">
                <div class="controls">
                    <button type="submit" class="btn">Đăng nhập</button>
                </div>
            </div>
        </form>
    </div>
</div>
